package com.atguigu.spzx.user.mapper;

import com.atguigu.spzx.model.entity.user.UserInfo;
import org.apache.ibatis.annotations.Mapper;

/**
 * ClassName: UserInfoMapper
 * Package: com.atguigu.spzx.user.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/16 13:26
 * @Version 1.0
 */
@Mapper
public interface UserInfoMapper {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    public UserInfo findByUsername(String username);

    /**
     * 插入数据
     * @param userInfo
     */
    void save(UserInfo userInfo);

    /**
     * 根据id更新用户
     * @param userInfo
     */
    void updateById(UserInfo userInfo);
}
